package cn.bellychang.deferredresult;

import cn.bellychang.aop.Performance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ChangLiang
 * @date 2020/9/8
 */
@RestController
public class AopController {

    @Autowired
    private Performance performance;

//    @HfiTrace
    @GetMapping("/perform")
    public String perform() {
        String perform = performance.perform();
        return perform;
    }
}
